home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
comms
/
other
/
amicomsys
/
rexx
/
ping.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-06-14
|
773b
|
26 lines
/* ARexx script to Ping someone */
/* For use with AmiComSys 1.12+ */
/* Ping must be in the AMITCP:bin directory or */
/* MiamiPing must be in the MIAMI: directory */
/* $VER: Ping.rexx 1.1 (15.1.97) Håkan Parting */
ADDRESS AMICOMSYS;
OPTIONS RESULTS;
GET stem info. CLIENTLIST;
/* "stem info." inserts the results to the structure 'info.'. */
/* "var s" would have inserted all the results to one string in s. */
/* "CLIENTLIST": We want to read the client list information. */
s=info.selected;
if show('P','MIAMI.1') then
do
ADDRESS COMMAND "MIAMI:MiamiPing " info.hostnames.s;
Exit
end
ADDRESS COMMAND "AMITCP:bin/Ping " info.hostnames.s;
/* To start another application just change ping to any other
program name and remove the 'if show do end' block*/
EXIT;